﻿using System.Collections.Generic;
using Newtonsoft.Json;
using ZilLion.Service.Core.Domain.EntityBase;

namespace ZilLion.Service.WeChatMall.Domain.Responses
{
    public class MapAllCitysDto
    {
        [JsonProperty("status")]
        public string Status { get; set; }

        [JsonProperty("info")]
        public string Info { get; set; }

        [JsonProperty("infocode")]
        public string Infocode { get; set; }

        [JsonProperty("count")]
        public string Count { get; set; }

        [JsonProperty("districts")]
        public IList<MapDistrict> Subdistricts { get; set; }
    }


    public class MapDistrict
    {
        [JsonProperty("adcode")]
        public string Adcode { get; set; }

        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("center")]
        public string Center { get; set; }

        [JsonProperty("level")]
        public string Level { get; set; }

        [JsonProperty("districts")]
        public IList<MapDistrict> Subdistricts { get; set; }
    }


    public class MapCategoryDto
    {
        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("order")]
        public int Order { get; set; }

        [JsonProperty("citys")]
        public IList<MapDistrict> Citys { get; set; }
    }

    public class MapCitysResponse : ResponseBase
    {
        [JsonProperty("mapCategorys")]
        public IList<MapCategoryDto> MapCategorys { get; set; }
    }
}